package com.wangx1n.boobey.controller;

import com.wangx1n.boobey.entity.Suggestion;
import com.wangx1n.boobey.service.SuggestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangxin
 * @create 2020-06-12 23:46
 */
@RestController
public class SuggestionController {
    @Autowired
    SuggestionService suggestionService;
    @RequestMapping(value = "/suggestion",method = RequestMethod.PUT)
    public String putSuggestion(Suggestion suggestion){
        return suggestionService.addSuggestion(suggestion);
    }
}
